package lab02.test09;

public class Student {
    String studyNumber;
    String classNumber;
    String name;
    String ex;
    int age;

    public void setStudyNumber(String studyNumber) {
        this.studyNumber = studyNumber;
    }

    public void setClassNumber(String classNumber) {
        this.classNumber = classNumber;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setEx(String ex) {
        this.ex = ex;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String toString() {
        return "学号:" + studyNumber + " 班号:" + classNumber + " 姓名:" + name + " 性别:" + ex + " 年龄:" + age;
    }

}
